package com.example.prettyprint;

import javax.xml.parsers.*;

import java.io.*;

public class Main
{
	public static void main(String args[])
	{
		SAXParserFactory factory = SAXParserFactory.newInstance();
		String xmlFilePath = args[0];
		
		try {
			SAXParser saxParser = factory.newSAXParser();
			saxParser.parse(new FileInputStream(xmlFilePath), new PrettyPrintHandler());
		} catch (Exception e) {
			System.out.println(e);
		}
	}
}
